"use strict";(self.webpackChunkpromptmanager=self.webpackChunkpromptmanager||[]).push([[4078],{68610:function(e,t,n){n.d(t,{Z:function(){return Ne}});var r=n(87462),o=n(63366),i=n(29439),a=n(72791),s=n(47563),f=n(75721),c=n(99723);function p(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function u(e){return e instanceof p(e).Element||e instanceof Element}function l(e){return e instanceof p(e).HTMLElement||e instanceof HTMLElement}function d(e){return"undefined"!==typeof ShadowRoot&&(e instanceof p(e).ShadowRoot||e instanceof ShadowRoot)}var m=Math.max,v=Math.min,h=Math.round;function y(){var e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function g(){return!/^((?!chrome|android).)*safari/i.test(y())}function b(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&l(e)&&(o=e.offsetWidth>0&&h(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&h(r.height)/e.offsetHeight||1);var a=(u(e)?p(e):window).visualViewport,s=!g()&&n,f=(r.left+(s&&a?a.offsetLeft:0))/o,c=(r.top+(s&&a?a.offsetTop:0))/i,d=r.width/o,m=r.height/i;return{width:d,height:m,top:c,right:f+d,bottom:c+m,left:f,x:f,y:c}}function w(e){var t=p(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function x(e){return e?(e.nodeName||"").toLowerCase():null}function O(e){return((u(e)?e.ownerDocument:e.document)||window.document).documentElement}function P(e){return b(O(e)).left+w(e).scrollLeft}function j(e){return p(e).getComputedStyle(e)}function E(e){var t=j(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function k(e,t,n){void 0===n&&(n=!1);var r=l(t),o=l(t)&&function(e){var t=e.getBoundingClientRect(),n=h(t.width)/e.offsetWidth||1,r=h(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),i=O(t),a=b(e,o,n),s={scrollLeft:0,scrollTop:0},f={x:0,y:0};return(r||!r&&!n)&&(("body"!==x(t)||E(i))&&(s=function(e){return e!==p(e)&&l(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:w(e);var t}(t)),l(t)?((f=b(t,!0)).x+=t.clientLeft,f.y+=t.clientTop):i&&(f.x=P(i))),{x:a.left+s.scrollLeft-f.x,y:a.top+s.scrollTop-f.y,width:a.width,height:a.height}}function Z(e){var t=b(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function R(e){return"html"===x(e)?e:e.assignedSlot||e.parentNode||(d(e)?e.host:null)||O(e)}function D(e){return["html","body","#document"].indexOf(x(e))>=0?e.ownerDocument.body:l(e)&&E(e)?e:D(R(e))}function A(e,t){var n;void 0===t&&(t=[]);var r=D(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=p(r),a=o?[i].concat(i.visualViewport||[],E(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(A(R(a)))}function M(e){return["table","td","th"].indexOf(x(e))>=0}function L(e){return l(e)&&"fixed"!==j(e).position?e.offsetParent:null}function S(e){for(var t=p(e),n=L(e);n&&M(n)&&"static"===j(n).position;)n=L(n);return n&&("html"===x(n)||"body"===x(n)&&"static"===j(n).position)?t:n||function(e){var t=/firefox/i.test(y());if(/Trident/i.test(y())&&l(e)&&"fixed"===j(e).position)return null;var n=R(e);for(d(n)&&(n=n.host);l(n)&&["html","body"].indexOf(x(n))<0;){var r=j(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var B="top",T="bottom",W="right",H="left",C="auto",V=[B,T,W,H],q="start",N="end",U="viewport",I="popper",F=V.reduce((function(e,t){return e.concat([t+"-"+q,t+"-"+N])}),[]),z=[].concat(V,[C]).reduce((function(e,t){return e.concat([t,t+"-"+q,t+"-"+N])}),[]),$=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function _(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}function X(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var Y={placement:"bottom",modifiers:[],strategy:"absolute"};function G(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"===typeof e.getBoundingClientRect)}))}function J(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?Y:o;return function(e,t,n){void 0===n&&(n=i);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},Y,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],s=!1,f={state:o,setOptions:function(n){var s="function"===typeof n?n(o.options):n;c(),o.options=Object.assign({},i,o.options,s),o.scrollParents={reference:u(e)?A(e):e.contextElement?A(e.contextElement):[],popper:A(t)};var p=function(e){var t=_(e);return $.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(r,o.options.modifiers)));return o.orderedModifiers=p.filter((function(e){return e.enabled})),o.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,i=e.effect;if("function"===typeof i){var s=i({state:o,name:t,instance:f,options:r}),c=function(){};a.push(s||c)}})),f.update()},forceUpdate:function(){if(!s){var e=o.elements,t=e.reference,n=e.popper;if(G(t,n)){o.rects={reference:k(t,S(n),"fixed"===o.options.strategy),popper:Z(n)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach((function(e){return o.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<o.orderedModifiers.length;r++)if(!0!==o.reset){var i=o.orderedModifiers[r],a=i.fn,c=i.options,p=void 0===c?{}:c,u=i.name;"function"===typeof a&&(o=a({state:o,options:p,name:u,instance:f})||o)}else o.reset=!1,r=-1}}},update:X((function(){return new Promise((function(e){f.forceUpdate(),e(o)}))})),destroy:function(){c(),s=!0}};if(!G(e,t))return f;function c(){a.forEach((function(e){return e()})),a=[]}return f.setOptions(n).then((function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)})),f}}var K={passive:!0};function Q(e){return e.split("-")[0]}function ee(e){return e.split("-")[1]}function te(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ne(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?Q(o):null,a=o?ee(o):null,s=n.x+n.width/2-r.width/2,f=n.y+n.height/2-r.height/2;switch(i){case B:t={x:s,y:n.y-r.height};break;case T:t={x:s,y:n.y+n.height};break;case W:t={x:n.x+n.width,y:f};break;case H:t={x:n.x-r.width,y:f};break;default:t={x:n.x,y:n.y}}var c=i?te(i):null;if(null!=c){var p="y"===c?"height":"width";switch(a){case q:t[c]=t[c]-(n[p]/2-r[p]/2);break;case N:t[c]=t[c]+(n[p]/2-r[p]/2)}}return t}var re={top:"auto",right:"auto",bottom:"auto",left:"auto"};function oe(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,f=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,l=e.isFixed,d=a.x,m=void 0===d?0:d,v=a.y,y=void 0===v?0:v,g="function"===typeof u?u({x:m,y:y}):{x:m,y:y};m=g.x,y=g.y;var b=a.hasOwnProperty("x"),w=a.hasOwnProperty("y"),x=H,P=B,E=window;if(c){var k=S(n),Z="clientHeight",R="clientWidth";if(k===p(n)&&"static"!==j(k=O(n)).position&&"absolute"===s&&(Z="scrollHeight",R="scrollWidth"),o===B||(o===H||o===W)&&i===N)P=T,y-=(l&&k===E&&E.visualViewport?E.visualViewport.height:k[Z])-r.height,y*=f?1:-1;if(o===H||(o===B||o===T)&&i===N)x=W,m-=(l&&k===E&&E.visualViewport?E.visualViewport.width:k[R])-r.width,m*=f?1:-1}var D,A=Object.assign({position:s},c&&re),M=!0===u?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:h(t*r)/r||0,y:h(n*r)/r||0}}({x:m,y:y}):{x:m,y:y};return m=M.x,y=M.y,f?Object.assign({},A,((D={})[P]=w?"0":"",D[x]=b?"0":"",D.transform=(E.devicePixelRatio||1)<=1?"translate("+m+"px, "+y+"px)":"translate3d("+m+"px, "+y+"px, 0)",D)):Object.assign({},A,((t={})[P]=w?y+"px":"",t[x]=b?m+"px":"",t.transform="",t))}var ie={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=z.reduce((function(e,n){return e[n]=function(e,t,n){var r=Q(e),o=[H,B].indexOf(r)>=0?-1:1,i="function"===typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[H,W].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,i),e}),{}),s=a[t.placement],f=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=f,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}},ae={left:"right",right:"left",bottom:"top",top:"bottom"};function se(e){return e.replace(/left|right|bottom|top/g,(function(e){return ae[e]}))}var fe={start:"end",end:"start"};function ce(e){return e.replace(/start|end/g,(function(e){return fe[e]}))}function pe(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&d(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ue(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function le(e,t,n){return t===U?ue(function(e,t){var n=p(e),r=O(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,f=0;if(o){i=o.width,a=o.height;var c=g();(c||!c&&"fixed"===t)&&(s=o.offsetLeft,f=o.offsetTop)}return{width:i,height:a,x:s+P(e),y:f}}(e,n)):u(t)?function(e,t){var n=b(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):ue(function(e){var t,n=O(e),r=w(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=m(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=m(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+P(e),f=-r.scrollTop;return"rtl"===j(o||n).direction&&(s+=m(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:f}}(O(e)))}function de(e,t,n,r){var o="clippingParents"===t?function(e){var t=A(R(e)),n=["absolute","fixed"].indexOf(j(e).position)>=0&&l(e)?S(e):e;return u(n)?t.filter((function(e){return u(e)&&pe(e,n)&&"body"!==x(e)})):[]}(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce((function(t,n){var o=le(e,n,r);return t.top=m(o.top,t.top),t.right=v(o.right,t.right),t.bottom=v(o.bottom,t.bottom),t.left=m(o.left,t.left),t}),le(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function me(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function ve(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function he(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.strategy,a=void 0===i?e.strategy:i,s=n.boundary,f=void 0===s?"clippingParents":s,c=n.rootBoundary,p=void 0===c?U:c,l=n.elementContext,d=void 0===l?I:l,m=n.altBoundary,v=void 0!==m&&m,h=n.padding,y=void 0===h?0:h,g=me("number"!==typeof y?y:ve(y,V)),w=d===I?"reference":I,x=e.rects.popper,P=e.elements[v?w:d],j=de(u(P)?P:P.contextElement||O(e.elements.popper),f,p,a),E=b(e.elements.reference),k=ne({reference:E,element:x,strategy:"absolute",placement:o}),Z=ue(Object.assign({},x,k)),R=d===I?Z:E,D={top:j.top-R.top+g.top,bottom:R.bottom-j.bottom+g.bottom,left:j.left-R.left+g.left,right:R.right-j.right+g.right},A=e.modifiersData.offset;if(d===I&&A){var M=A[o];Object.keys(D).forEach((function(e){var t=[W,T].indexOf(e)>=0?1:-1,n=[B,T].indexOf(e)>=0?"y":"x";D[e]+=M[n]*t}))}return D}function ye(e,t,n){return m(e,v(t,n))}var ge={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0!==a&&a,f=n.boundary,c=n.rootBoundary,p=n.altBoundary,u=n.padding,l=n.tether,d=void 0===l||l,h=n.tetherOffset,y=void 0===h?0:h,g=he(t,{boundary:f,rootBoundary:c,padding:u,altBoundary:p}),b=Q(t.placement),w=ee(t.placement),x=!w,O=te(b),P="x"===O?"y":"x",j=t.modifiersData.popperOffsets,E=t.rects.reference,k=t.rects.popper,R="function"===typeof y?y(Object.assign({},t.rects,{placement:t.placement})):y,D="number"===typeof R?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(j){if(i){var L,C="y"===O?B:H,V="y"===O?T:W,N="y"===O?"height":"width",U=j[O],I=U+g[C],F=U-g[V],z=d?-k[N]/2:0,$=w===q?E[N]:k[N],_=w===q?-k[N]:-E[N],X=t.elements.arrow,Y=d&&X?Z(X):{width:0,height:0},G=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},J=G[C],K=G[V],ne=ye(0,E[N],Y[N]),re=x?E[N]/2-z-ne-J-D.mainAxis:$-ne-J-D.mainAxis,oe=x?-E[N]/2+z+ne+K+D.mainAxis:_+ne+K+D.mainAxis,ie=t.elements.arrow&&S(t.elements.arrow),ae=ie?"y"===O?ie.clientTop||0:ie.clientLeft||0:0,se=null!=(L=null==A?void 0:A[O])?L:0,fe=U+oe-se,ce=ye(d?v(I,U+re-se-ae):I,U,d?m(F,fe):F);j[O]=ce,M[O]=ce-U}if(s){var pe,ue="x"===O?B:H,le="x"===O?T:W,de=j[P],me="y"===P?"height":"width",ve=de+g[ue],ge=de-g[le],be=-1!==[B,H].indexOf(b),we=null!=(pe=null==A?void 0:A[P])?pe:0,xe=be?ve:de-E[me]-k[me]-we+D.altAxis,Oe=be?de+E[me]+k[me]-we-D.altAxis:ge,Pe=d&&be?function(e,t,n){var r=ye(e,t,n);return r>n?n:r}(xe,de,Oe):ye(d?xe:ve,de,d?Oe:ge);j[P]=Pe,M[P]=Pe-de}t.modifiersData[r]=M}},requiresIfExists:["offset"]};var be={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Q(n.placement),f=te(s),c=[H,W].indexOf(s)>=0?"height":"width";if(i&&a){var p=function(e,t){return me("number"!==typeof(e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:ve(e,V))}(o.padding,n),u=Z(i),l="y"===f?B:H,d="y"===f?T:W,m=n.rects.reference[c]+n.rects.reference[f]-a[f]-n.rects.popper[c],v=a[f]-n.rects.reference[f],h=S(i),y=h?"y"===f?h.clientHeight||0:h.clientWidth||0:0,g=m/2-v/2,b=p[l],w=y-u[c]-p[d],x=y/2-u[c]/2+g,O=ye(b,x,w),P=f;n.modifiersData[r]=((t={})[P]=O,t.centerOffset=O-x,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!==typeof r||(r=t.elements.popper.querySelector(r)))&&pe(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function we(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function xe(e){return[B,W,T,H].some((function(t){return e[t]>=0}))}var Oe=J({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,s=void 0===a||a,f=p(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach((function(e){e.addEventListener("scroll",n.update,K)})),s&&f.addEventListener("resize",n.update,K),function(){i&&c.forEach((function(e){e.removeEventListener("scroll",n.update,K)})),s&&f.removeEventListener("resize",n.update,K)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=ne({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,f=void 0===s||s,c={placement:Q(t.placement),variation:ee(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,oe(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:f})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,oe(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];l(o)&&x(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});l(r)&&x(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]},ie,{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0===a||a,f=n.fallbackPlacements,c=n.padding,p=n.boundary,u=n.rootBoundary,l=n.altBoundary,d=n.flipVariations,m=void 0===d||d,v=n.allowedAutoPlacements,h=t.options.placement,y=Q(h),g=f||(y===h||!m?[se(h)]:function(e){if(Q(e)===C)return[];var t=se(e);return[ce(e),t,ce(t)]}(h)),b=[h].concat(g).reduce((function(e,n){return e.concat(Q(n)===C?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,f=n.allowedAutoPlacements,c=void 0===f?z:f,p=ee(r),u=p?s?F:F.filter((function(e){return ee(e)===p})):V,l=u.filter((function(e){return c.indexOf(e)>=0}));0===l.length&&(l=u);var d=l.reduce((function(t,n){return t[n]=he(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[Q(n)],t}),{});return Object.keys(d).sort((function(e,t){return d[e]-d[t]}))}(t,{placement:n,boundary:p,rootBoundary:u,padding:c,flipVariations:m,allowedAutoPlacements:v}):n)}),[]),w=t.rects.reference,x=t.rects.popper,O=new Map,P=!0,j=b[0],E=0;E<b.length;E++){var k=b[E],Z=Q(k),R=ee(k)===q,D=[B,T].indexOf(Z)>=0,A=D?"width":"height",M=he(t,{placement:k,boundary:p,rootBoundary:u,altBoundary:l,padding:c}),L=D?R?W:H:R?T:B;w[A]>x[A]&&(L=se(L));var S=se(L),N=[];if(i&&N.push(M[Z]<=0),s&&N.push(M[L]<=0,M[S]<=0),N.every((function(e){return e}))){j=k,P=!1;break}O.set(k,N)}if(P)for(var U=function(e){var t=b.find((function(t){var n=O.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return j=t,"break"},I=m?3:1;I>0;I--){if("break"===U(I))break}t.placement!==j&&(t.modifiersData[r]._skip=!0,t.placement=j,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},ge,be,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=he(t,{elementContext:"reference"}),s=he(t,{altBoundary:!0}),f=we(a,r),c=we(s,o,i),p=xe(f),u=xe(c);t.modifiersData[n]={referenceClippingOffsets:f,popperEscapeOffsets:c,isReferenceHidden:p,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":u})}}]}),Pe=n(94419),je=n(96174),Ee=n(21217);function ke(e){return(0,Ee.Z)("MuiPopperUnstyled",e)}(0,n(75878).Z)("MuiPopperUnstyled",["root"]);var Ze=n(57271),Re=n(80184),De=["anchorEl","children","component","direction","disablePortal","modifiers","open","ownerState","placement","popperOptions","popperRef","slotProps","slots","TransitionProps"],Ae=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Me(e){return"function"===typeof e?e():e}function Le(e){return void 0!==e.nodeType}var Se={},Be=a.forwardRef((function(e,t){var n,c=e.anchorEl,p=e.children,u=e.component,l=e.direction,d=e.disablePortal,m=e.modifiers,v=e.open,h=e.ownerState,y=e.placement,g=e.popperOptions,b=e.popperRef,w=e.slotProps,x=void 0===w?{}:w,O=e.slots,P=void 0===O?{}:O,j=e.TransitionProps,E=(0,o.Z)(e,De),k=a.useRef(null),Z=(0,s.Z)(k,t),R=a.useRef(null),D=(0,s.Z)(R,b),A=a.useRef(D);(0,f.Z)((function(){A.current=D}),[D]),a.useImperativeHandle(b,(function(){return R.current}),[]);var M=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(y,l),L=a.useState(M),S=(0,i.Z)(L,2),B=S[0],T=S[1],W=a.useState(Me(c)),H=(0,i.Z)(W,2),C=H[0],V=H[1];a.useEffect((function(){R.current&&R.current.forceUpdate()})),a.useEffect((function(){c&&V(Me(c))}),[c]),(0,f.Z)((function(){if(C&&v){var e=[{name:"preventOverflow",options:{altBoundary:d}},{name:"flip",options:{altBoundary:d}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:function(e){var t=e.state;T(t.placement)}}];null!=m&&(e=e.concat(m)),g&&null!=g.modifiers&&(e=e.concat(g.modifiers));var t=Oe(C,k.current,(0,r.Z)({placement:M},g,{modifiers:e}));return A.current(t),function(){t.destroy(),A.current(null)}}}),[C,d,m,v,g,M]);var q={placement:B};null!==j&&(q.TransitionProps=j);var N=(0,Pe.Z)({root:["root"]},ke,{}),U=null!=(n=null!=u?u:P.root)?n:"div",I=(0,Ze.Z)({elementType:U,externalSlotProps:x.root,externalForwardedProps:E,additionalProps:{role:"tooltip",ref:Z},ownerState:(0,r.Z)({},e,h),className:N.root});return(0,Re.jsx)(U,(0,r.Z)({},I,{children:"function"===typeof p?p(q):p}))})),Te=a.forwardRef((function(e,t){var n,s=e.anchorEl,f=e.children,p=e.container,u=e.direction,l=void 0===u?"ltr":u,d=e.disablePortal,m=void 0!==d&&d,v=e.keepMounted,h=void 0!==v&&v,y=e.modifiers,g=e.open,b=e.placement,w=void 0===b?"bottom":b,x=e.popperOptions,O=void 0===x?Se:x,P=e.popperRef,j=e.style,E=e.transition,k=void 0!==E&&E,Z=e.slotProps,R=void 0===Z?{}:Z,D=e.slots,A=void 0===D?{}:D,M=(0,o.Z)(e,Ae),L=a.useState(!0),S=(0,i.Z)(L,2),B=S[0],T=S[1];if(!h&&!g&&(!k||B))return null;if(p)n=p;else if(s){var W=Me(s);n=W&&Le(W)?(0,c.Z)(W).body:(0,c.Z)(null).body}var H=g||!h||k&&!B?void 0:"none",C=k?{in:g,onEnter:function(){T(!1)},onExited:function(){T(!0)}}:void 0;return(0,Re.jsx)(je.Z,{disablePortal:m,container:n,children:(0,Re.jsx)(Be,(0,r.Z)({anchorEl:s,direction:l,disablePortal:m,modifiers:y,ref:t,open:k?!B:g,placement:w,popperOptions:O,popperRef:P,slotProps:R,slots:A},M,{style:(0,r.Z)({position:"fixed",top:0,left:0,display:H},j),TransitionProps:C,children:f}))})})),We=n(69120),He=n(66934),Ce=n(31402),Ve=["components","componentsProps","slots","slotProps"],qe=(0,He.ZP)(Te,{name:"MuiPopper",slot:"Root",overridesResolver:function(e,t){return t.root}})({}),Ne=a.forwardRef((function(e,t){var n,i=(0,We.Z)(),a=(0,Ce.Z)({props:e,name:"MuiPopper"}),s=a.components,f=a.componentsProps,c=a.slots,p=a.slotProps,u=(0,o.Z)(a,Ve),l=null!=(n=null==c?void 0:c.root)?n:null==s?void 0:s.Root;return(0,Re.jsx)(qe,(0,r.Z)({direction:null==i?void 0:i.direction,slots:{root:l},slotProps:null!=p?p:f},u,{ref:t}))}))},53767:function(e,t,n){var r=n(4942),o=n(63366),i=n(87462),a=n(72791),s=n(51184),f=n(45682),c=n(78519),p=n(82466),u=n(66934),l=n(31402),d=n(80184),m=["component","direction","spacing","divider","children"];function v(e,t){var n=a.Children.toArray(e).filter(Boolean);return n.reduce((function(e,r,o){return e.push(r),o<n.length-1&&e.push(a.cloneElement(t,{key:"separator-".concat(o)})),e}),[])}var h=(0,u.ZP)("div",{name:"MuiStack",slot:"Root",overridesResolver:function(e,t){return[t.root]}})((function(e){var t=e.ownerState,n=e.theme,o=(0,i.Z)({display:"flex",flexDirection:"column"},(0,s.k9)({theme:n},(0,s.P$)({values:t.direction,breakpoints:n.breakpoints.values}),(function(e){return{flexDirection:e}})));if(t.spacing){var a=(0,f.hB)(n),c=Object.keys(n.breakpoints.values).reduce((function(e,n){return("object"===typeof t.spacing&&null!=t.spacing[n]||"object"===typeof t.direction&&null!=t.direction[n])&&(e[n]=!0),e}),{}),u=(0,s.P$)({values:t.direction,base:c}),l=(0,s.P$)({values:t.spacing,base:c});"object"===typeof u&&Object.keys(u).forEach((function(e,t,n){if(!u[e]){var r=t>0?u[n[t-1]]:"column";u[e]=r}}));o=(0,p.Z)(o,(0,s.k9)({theme:n},l,(function(e,n){return{"& > :not(style) + :not(style)":(0,r.Z)({margin:0},"margin".concat((o=n?u[n]:t.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[o])),(0,f.NA)(a,e))};var o})))}return o=(0,s.dt)(n.breakpoints,o)})),y=a.forwardRef((function(e,t){var n=(0,l.Z)({props:e,name:"MuiStack"}),r=(0,c.Z)(n),a=r.component,s=void 0===a?"div":a,f=r.direction,p=void 0===f?"column":f,u=r.spacing,y=void 0===u?0:u,g=r.divider,b=r.children,w=(0,o.Z)(r,m),x={direction:p,spacing:y};return(0,d.jsx)(h,(0,i.Z)({as:s,ownerState:x,ref:t},w,{children:g?v(b,g):b}))}));t.Z=y},8799:function(e,t,n){n(72791);var r=n(74223),o=n(80184);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close")}}]);
//# sourceMappingURL=4078.0350784b.chunk.js.map